
package great.easychat.help.dialog.gravity
import androidx.fragment.app.DialogFragment
import android.view.Gravity
import android.view.Window
import com.qizhou.base.dialog.lifecycledialog.applyGravityStyle


class FixPositionDialogGravityHandler(dialogFragment: DialogFragment) : BaseDialogGravityHandler(dialogFragment) {

    init {
        gravityEnum = GravityEnum.TOP
        animationStyleresId = null
    }

    override fun applyGravity(window: Window) {
        window.applyGravityStyle(Gravity.TOP, null, x = xPosition, y = yPosition)
    }

}